package com.bjfu.gmms.service;



import com.bjfu.gmms.mapper.CatalogMapper;
import com.bjfu.gmms.model.Catalog;

import java.util.List;

public class CatalogService {

    private CatalogMapper catalogMapper;

    // 通过构造函数注入或手动实例化
    public CatalogService(CatalogMapper catalogMapper) {
        this.catalogMapper = catalogMapper;
    }

    public List<Catalog> getCatalogList() {
        return catalogMapper.getCatalogList();
    }
}

